home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15281 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  880 b 

  1. Path: nntp.teleport.com!usenet
  2. From: GHouck <hksys@teleport.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Q: C pipe function
  5. Date: 18 Apr 1996 09:14:43 GMT
  6. Organization: systems hk
  7. Message-ID: <4l5163$up@nadine.teleport.com>
  8. References: <3174FEA6.41C6@wight.hursley.ibm.com>
  9. NNTP-Posting-Host: ip-pdx02-49.teleport.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.22 (Windows; I; 32bit)
  14.  
  15. Max Waterman <dwater@wight.hursley.ibm.com> wrote:
  16. >Is there a function accessible from C that allows you to write to the
  17. >stdin of a command and read from the stdout of that command? eg :-
  18. >
  19. [snip]
  20.  
  21. How about:
  22.  
  23. yourprogram | sort | yourprogram
  24.  
  25. Where yourprogram, if given no std-input, generates its 
  26. output (whatever that is).  If given some std-input, it
  27. processes it (whatever it is) [and outputs it?]
  28.  
  29. Yours, Geoff Houck
  30.  
  31.